<?php

class Transport
{
  public function __construct()
  {
    echo "\n",__LINE__,"\n";
    $this->model = 'Tata Sumo';
  }
}

class Vehicle extends Transport
{
  public function __construct()
  {
    echo "\n",__LINE__,"\n";
    $this->model = 'Safari';
  }
}

class Car extends Vehicle
{
  public $made = 'Ferrari';
  public $model = 'Default-F350';

  public function __construct()
  {
    echo "\n",__LINE__,"\n";
    $this->model = 'Model 1';
  }

  public function car()
  {
    echo "\n",__LINE__,"\n";
    $this->model = 'Model 2';
  }

  public function __destruct()
  {
    echo "\n",__LINE__,"\n";
    echo "Clean UP";
    echo "\n\n";
  }

}


$obj = new Car;



echo $obj->made;
echo "\n\n";
echo $obj->model;
echo "\n\n";
